/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package umat.beans;

import java.io.Serializable;

/**
 *
 * @author Tudor
 */
public class Field implements Serializable{
    private String name,type;
    
    /**
     * 
     * @param name
     * @param type
     */
    public Field(String name, String type) {
        this.name = name;
        this.type = type;
    }
    
    /**
     * 
     */
    public Field(){
        
    }
    
    /**
     * 
     * @return
     */
    public String getName() {
        if (name==null)
            return "Empty";
        return name;
    }

    /**
     * 
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     * @return
     */
    public String getType() {
        if (type==null)
            return "Empty";
        return type;
    }

    /**
     * 
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }
    
    public String toString(){
        return this.type+" "+this.name+" ";
    }
    
}





